    #include "cinatra.hpp"
#include <cinatra/nlohmann_json.hpp>
using namespace cinatra;

int main() {
    int max_thread_num = std::thread::hardware_concurrency();
    http_server server(max_thread_num);
    server.listen("0.0.0.0", "8080");
    server.set_http_handler<GET, POST>("/", [](request& req, response& res) {
        nlohmann::json js;
        js["asd"]="世界";
        res.set_status_and_content(status_type::ok, js.dump(),req_content_type::string);
    });

    server.run();
    return 0;
}